Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Stata LaTeX export without preamble (\documentclass[]{article} || \begin{document})

    I want to export Stata regression output in .tex format for inclusion in Overleaf text editor as a table (\begin{table}). However, this causes problems in Overleaf (when using \begin{table}), since the preamble is already set.
    I want to directly export my output into LaTeX, but without the following:

    HTML Code:
    \documentclass[]{article}
    \setlength{\pdfpagewidth}{8.5in} \setlength{\pdfpageheight}{11in}
    \begin{document}
    Is this possible?

    Edit: I am using outreg2 using myname, app label nocons tex
    Last edited by Castor Comploj; 12 Aug 2022, 05:40.

  • #2
    What Stata command are you using to create the LaTeX output?

    Comment


    • #3
      So outreg2 is a community-contributed command available from SSC, not part of base Stata.

      I don't use TeX or outreg2, but Example 13 in the output of
      Code:
      help outreg2
      discusses creating TeX fragments using the tex(frag) option. Perhaps this is the information you seek.

      Comment


      • #4
        Was looking for this.
        tex(frag) provides the solution to the problem.

        Comment

        Working...
        X